package app

import (
	"APT/internal/service"
	"context"

	"github.com/gogf/gf/v2/errors/gerror"

	"APT/api/app/hotel"
)

func (c *ControllerHotel) CancelOrderNoPay(ctx context.Context, req *hotel.CancelOrderNoPayReq) (res *hotel.CancelOrderNoPayRes, err error) {
	if err = service.HotelService().OrderExpiration(ctx, req.OrderSn); err != nil {
		err = gerror.New("订单过期处理失败")
		return
	}
	return
}
